<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/common.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script language="javascript" type="text/javascript" src="/card/common/common.js"></script>
<script type="text/javascript" language="javascript"
	src="/card/common/levelone.js"></script>
<script type="text/javascript" language="javascript"
	src="leveltwo.js"></script>	
<script type="text/javascript" language="javascript"
	src="/card/common/level_init.js"></script>
 <title>石家庄一卡通有限公司_集体购卡处理</title>
<link href="/card/images/css.css" rel="stylesheet" type="text/css">

<style type="text/css">
<!--
.STYLE1 {color: #FF0000}
body{
	font-size:12px;
}
-->
</style>
</head>

<body>
<table width="945" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="/card/images/index_02.jpg" width="945" height="93" /></td>
  </tr>
</table>
<table width="945" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top"><img src="/card/images/index_04.jpg" width="945" height="5" /></td>
  </tr>
</table>
<table width="945" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="21"><img src="/card/images/index_06.jpg" width="21" height="32" /></td>
    <td width="903" background="/card/images/index_08.jpg"><div align="center">
    		<script type="text/javascript" language="javascript">
				initLevelOne();
			</script>
    </div></td>
    <td width="21"><img src="/card/images/index_07.jpg" width="21" height="32" /></td>
  </tr>
</table>
<table width="945" height="15" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>
<table width="945" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
		<script type="text/javascript"> 
	 var pic_width=945
 var pic_height=198
 var text_height=0  
 var swfpath = '/card/images/focus.swf' 
 var swf_height = pic_height+text_height 
 var pics='/card/images/q1.jpg|/card/images/q2.jpg|/card/images/q3.jpg|/card/images/q4.jpg'
 var links='#|#|#|#'
 var texts='||'
 document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ pic_width +'" height="'+ swf_height +'">');document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="'+swfpath+'"><param name="quality" value="high"><param name="bgcolor" value="#ffffff">');document.write('<param name="menu" value="false"><param name=wmode value="opaque">');document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+pic_width+'&borderheight='+pic_height+'&textheight='+text_height+'">');document.write('<embed src="'+swfpath+'" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+pic_width+'&borderheight='+pic_height+'&textheight='+text_height+'" menu="false" bgcolor="#ffffff" quality="high" width="'+ pic_width +'" height="'+ pic_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');  document.write('</object>'); </script>
		
		</td>
  </tr>
</table>
<table width="945" height="15" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td></td>
  </tr>
</table>


    <td>&nbsp;</td>
    <td width="668" valign="top">
    <table width="945" height="25" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="179" background="/card/images/index_26.jpg"><div align="center" class="baid">集体购卡处理</div></td>
          <td background="/card/images/index_29.jpg">&nbsp;</td>
          <td background="/card/images/index_29.jpg">&nbsp;</td>
          
        </tr>
    </table>
      <table width="945" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
            <td>
              <form action="" method="post" name="cardbuy" id="cardbuy">
              <br/>
                   <div align="center">
                     <table width="45%" border="0">
                       <tr style="height:18px">
                         <td align="right">购卡单位：</td>
                         <td  align="left"><label>
                           <input type="text" name="cardbuy.company" id="cardbuy.company" style="width:250px;" value="${cardbuy.company}"/>
                           <span class="STYLE1">*</span></label></td>
                       </tr>
                       <tr style="height:18px">
                         <td align="right">联 系 人：</td>
                         <td align="left"><label>
                           <input type="text" name="cardbuy.linkman" id="cardbuy.linkman" style="width:250px;" value="${cardbuy.linkman}"/>
                           <span class="STYLE1">*</span></label></td>
                       </tr>
                       <tr style="height:18px">
                         <td align="right">联系电话：</td>
                         <td align="left"><label>
                           <input type="text" name="cardbuy.phone" id="cardbuy.phone" style="width:250px;" value="${cardbuy.phone}"/>
                           <span class="STYLE1">*</span></label></td>
                       </tr>
                       <tr style="height:18px">
                         <td align="right">备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注：</td>
                         <td align="left">（请在备注项中写明购卡数量、送货地址等信息）</td>
                       </tr>
                       <tr>
                         <td>&nbsp;</td>
                         <td align="left"><textarea name="cardbuy.remark" id="cardbuy.remark" cols="30" rows="4">${cardbuy.remark}</textarea>
                         <span class="STYLE1">*</span></td>
                       </tr>
                       <tr>
                         <td align="right">处理状态：</td>
                         <td align="left">
                         	<div style="width:250px;text-align:center">
                         	<input type="radio" name="cardbuy.state" id="cardbuy.state" value='0'
                         		<c:if test="${cardbuy.state == '0'}">checked</c:if>
                         	/>未处理
                         	<input type="radio" name="cardbuy.state" id="cardbuy.state" value='1'
                         		<c:if test="${cardbuy.state == '1'}">checked</c:if>
                         	/>已处理
                         	
                         <span class="STYLE1">*</span></div></td>
                       </tr>
                     </table>
                     <p>
  <input name="提交" type="button"  value="提交" onClick="save()" />
  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                       <input name="重置" type="reset"  value="重置"/>                       
                       </p>
                   </div>
                   <input type="hidden" name="cardbuy.regDate" value="${cardbuy.regDate}"/>
                   <input type="hidden" name="cardbuy.regid" value="${cardbuy.regid}"/>
              </form>
            <script type="text/javascript">
            	//验证注册信息
            	function save(){
                	var companyTxt = document.getElementById('cardbuy.company');
                	var linkmanTxt = document.getElementById('cardbuy.linkman');
                	var phoneTxt = document.getElementById('cardbuy.phone');
                	var remarkTxt = document.getElementById('cardbuy.remark');
                	if(companyTxt.value.trim().length == 0){
						alert('请填写购卡单位!');
						companyTxt.focus();
						return;
                    }
                    if(linkmanTxt.value.trim().length == 0){
						alert('请填写联系人!');
						linkmanTxt.focus();
						return;
                    }
                    if(phoneTxt.value.trim().length == 0){
                		alert('请填写联系电话！');
                		phoneTxt.focus();
                		return;
                	}
                	//联系电话格式检查
                	if((!/^([0-9]{3,4}-)?[0-9]{8}$/g.test(phoneTxt.value.trim()))
                			&& (!/^[0-9]{11}$/g.test(phoneTxt.value.trim()))){
                		alert("固定电话的格式必须为【区号-8位有效数字】或【8位有效数字】\n"
                				+ "手机电话的格式必须为11位有效数字,请检查！");		
                		phoneTxt.focus();
                		return;
                	}
					if(remarkTxt.value.trim().length == 0){
						alert("请按要求填写备注信息!");
						remarkTxt.focus();
						return;
					}                	
                	var form = document.getElementById('cardbuy');
                	form.action = "${backPath}/cardbuy/updateCardBuy.action"; 
                	form.submit();               	
                }
            </script>
            </td>
        </tr>
        
      </table></td>
  </tr>
</table>
<table width="945" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="945" height="69" border="0" align="center" cellpadding="0" cellspacing="0" class="bk">
  <tr>
    <td width="25"><img src="/card/images/yq_35.jpg" width="25" height="30" /></td>
    <td width="895" background="/card/images/yq_07.jpg" class="heic">友情链接</td>
    <td width="25"><img src="/card/images/yq_36.jpg" width="25" height="30" /></td>
  </tr>
  <tr>
    <td height="37">&nbsp;</td>
    <td ><jsp:include page="/foot.jsp"></jsp:include></td>
    <td>&nbsp;</td>
  </tr>
</table>
<table width="945" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="108" height="105"><div align="center"><img src="${cardPath}/images/logo.jpg" width="52" height="64" /></div></td>
    <td width="837"><div align="center" class="di">石家庄一卡通卡有限公司 （2009-2010）版权所有  技术支持:网讯科技 冀ICP备05035382号 <br />
      电话：86－0311－88611099   传真：86－0311－88611099  邮箱:ncckefu@163.com<br />
    地址:石家庄市中山西路83号东方大厦1418室</div></td>
  </tr>
</table>
</body>
</html>
